﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _1Dot9MasterTransactions
{
    public class ConfigManager
    {
        public static bool GetBoolean(string name)
        {
            return bool.Parse(GetValue(name));
        }

        public static int GetInt32(string name)
        {
            return Int32.Parse(GetValue(name));
        }

        public static string GetString(string name)
        {
            return GetValue(name);
        }

        private static string GetValue(string name)
        {
            return System.Configuration.ConfigurationManager.AppSettings[name].ToString();
        }
    }
}
